﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Torch_IServices
{
    public interface IFunctionService
    {
        Task<int> AddFunctionAsync(string title,string image,string link);
        Task<int> EditFunctionAsync(int id, string title, string image, string link);
        Task<int> DeleteFunctionAsync(int id);
        Task<List<FunctionDto>> QueryAllFunctionAsync();
        Task<List<FunctionDto>> QueryByTitleFunctionAsync(string title);
        Task<FunctionDto> QueryByIdFunctionAsync(int id);
    }
}
